package com.glory.wxelectricitypda.bean;

import java.io.Serializable;
import java.util.UUID;

/**
 * @author lx
 * @date 2019/1/10
 * @desc
 */

public class RequestHeaderBean implements Serializable {


    private String MESSAGENAME;
    private String TRANSACTIONID;
    private int ORGRRN;
    private String ORGNAME;
    private String USERNAME;
    private String LANGUAGE;
    private String MACHINENAME;
    private String EVENTTIME;
    private String USR;

    public RequestHeaderBean(String MESSAGENAME, String USERNAME) {
        this.MESSAGENAME = MESSAGENAME;
        this.TRANSACTIONID = UUID.randomUUID().toString();
        this.ORGNAME = "SBE";
        this.ORGRRN = 20;
        this.USERNAME = USERNAME;
        this.LANGUAGE = "ZH";
        this.MACHINENAME = "PDA";
        this.USR = "ERP";
    }

    public RequestHeaderBean(String MESSAGENAME, String USERNAME,String LANGUAGE) {
        this.MESSAGENAME = MESSAGENAME;
        this.TRANSACTIONID = UUID.randomUUID().toString();
        this.ORGNAME = "PROD";
        this.ORGRRN = 20;
        this.USERNAME = USERNAME;
        this.LANGUAGE = LANGUAGE;
    }

    public String getUSR() {
        return USR == null ? "" : USR;
    }

    public void setUSR(String USR) {
        this.USR = USR;
    }

    public String getMACHINENAME() {
        return MACHINENAME == null ? "" : MACHINENAME;
    }

    public void setMACHINENAME(String MACHINENAME) {
        this.MACHINENAME = MACHINENAME;
    }

    public String getEVENTTIME() {
        return EVENTTIME == null ? "" : EVENTTIME;
    }

    public void setEVENTTIME(String EVENTTIME) {
        this.EVENTTIME = EVENTTIME;
    }

    public String getMESSAGENAME() {
        return MESSAGENAME;
    }

    public void setMESSAGENAME(String MESSAGENAME) {
        this.MESSAGENAME = MESSAGENAME;
    }

    public String getTRANSACTIONID() {
        return TRANSACTIONID;
    }

    public void setTRANSACTIONID(String TRANSACTIONID) {
        this.TRANSACTIONID = TRANSACTIONID;
    }

    public int getORGRRN() {
        return ORGRRN;
    }

    public void setORGRRN(int ORGRRN) {
        this.ORGRRN = ORGRRN;
    }

    public String getORGNAME() {
        return ORGNAME;
    }

    public void setORGNAME(String ORGNAME) {
        this.ORGNAME = ORGNAME;
    }

    public String getUSERNAME() {
        return USERNAME;
    }

    public void setUSERNAME(String USERNAME) {
        this.USERNAME = USERNAME;
    }

    public String getLANGUAGE() {
        return LANGUAGE;
    }

    public void setLANGUAGE(String LANGUAGE) {
        this.LANGUAGE = LANGUAGE;
    }
}
